import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getDressPageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCharacterCostumes/getPageList`,
    method: 'post',
    data
  })
}
export const deleteExpression = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCharacterCostumes/deleteExpression`,
    method: 'post',
    data
  })
}
export const deleteDressPack = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/deleteBatch`,
    method: 'post',
    data
  })
}

export const changeDressStatus = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCharacterCostumes/changeStatus`,
    method: 'get',
    params
  })
}

export const changeDressPackStatus = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/changeStatus`,
    method: 'post',
    data
  })
}

export const addOrUpdateCostumes = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCharacterCostumes/addOrUpdateCostumes`,
    method: 'post',
    data
  })
}

export const getPackPageList = (data) => {
  return request({
    // url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/getPageList`,
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/getPackagePageList`,
    method: 'post',
    data
  })
}

export const addOrUpdateWithCostume = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/addOrUpdateWithCostume`,
    method: 'post',
    data
  })
}

export const costumesPackDetail = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/detail`,
    method: 'post',
    data
  })
}

export const getPackagePageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/getPackagePageList`,
    method: 'post',
    data
  })
}

export const addOrUpdateCustom = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsCostumesPackage/addOrUpdate`,
    method: 'post',
    data
  })
}

